//
//  Common.swift
//  weibo
//
//  Created by MaYingxin on 16/4/16.
//  Copyright © 2016年 MaYingxin. All rights reserved.
//

import UIKit

let WeiBoUserName = "13180367775"
let WeiBoPwd = "myx931816682"

let AppKey = "2110850965"
let AppSecret = "b340280ba5f1983181406292bd240fa0"
let Redirect_uri = "http://www.jianshu.com/"


let kScreenW = UIScreen.mainScreen().bounds.size.width
let kScreenH = UIScreen.mainScreen().bounds.size.height

let themeColor = UIColor.orangeColor()


func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> (UIColor) {
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}

func randomColor() -> UIColor {
    
    let r = random() % 256
    let g = random() % 256
    let b = random() % 256
    
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
    
}


